package com.joysuch.wwyt.risk.mapper;

import com.joysuch.wwyt.risk.entity.RiskHiddenDangerContent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author heqifeng
 * @since 2021-09-13
 */
public interface RiskHiddenDangerContentMapper extends BaseMapper<RiskHiddenDangerContent> {

   List<Long> findIdsByRiskPoints(@Param("riskPointIds")List<Long> riskPointIds);

   List<RiskHiddenDangerContent> findAll(Long tenentId,String orgCode);

   List<RiskHiddenDangerContent> findByDetailId(@Param("detailId")Long detailId);

   Long findIdByPlanId(Long planId);

    void removeByDetailIds(@Param("detailIds")List<Long> detailIds);

    Long selectRiskPointIdById(Long id);

    Long selectEvaluationIdById(Long id);
}
